﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace HamcoWcs.Entitys.LcdInfos
{
    public class LcdInfoConfig : IEntityTypeConfiguration<LcdInfo>
    {
        public void Configure(EntityTypeBuilder<LcdInfo> builder)
        {
            builder.HasComment("Lcd信息表");
            builder.Property(x => x.StationName).IsRequired().HasMaxLength(50).HasComment("Lcd对应的输送机设备号");
            builder.Property(x => x.LcdName).IsRequired().HasMaxLength(30).HasComment("Lcd名");
        }
    }
}
